<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>管理区域</title>
<SCRIPT src="style/js/jquery-1.3.2.min.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/main.js" type=text/javascript></SCRIPT>
<SCRIPT src="style/js/jquery-ui-1.7.2.custom.min.js" type=text/javascript></SCRIPT>
<LINK href="style/css/jquery-ui-1.7.2.custom.min.css" type=text/css rel=stylesheet>
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
</head>

<body>
<div id="man_zone">
<form action="./?m=website&a=add" method="post">
<h1><%$classify.c.$cid.name%></h1>
<table  width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
  <tr>
    <td colspan="2">在此分类下添加网站</td>
    </tr>
  <tr>
    <td>网站域名:</td>
    <td>
      <input type="text" name="domain" id="domain" />
      <input type="hidden" name="cid" value="<%$arg.cid%>" />
      <input type="submit" name="button" id="button" value="提交" />
    </td>
  </tr>
  <tr>
    <td colspan="2">
    
    </td>
    </tr>
</table>
</form>
<br />
<table  width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
  <tr>
    <td>域名</td>
    <td>地址</td>
    <td>用户名</td>
    <td>密码</td>
    <td>数据库名</td>
    <td>表前缀</td>
    <td>编码</td>
    <td>操作</td>
  </tr>
  <%foreach item=val from=$websites%>
  <tr id="tr_<%$val.wid%>">
    <td><a href="index.php?m=website&a=attribute&wid=<%$val.wid%>" class="edit" wid="<%$val.wid%>"><%$val.domain%></a></td>
    <td><%$val.host%></td>
    <td><%$val.username%></td>
    <td><%$val.password%></td>
    <td><%$val.dbname%></td>
    <td><%$val.prefix%></td>
    <td><%$val.charset%></td>
    <td><a href="index.php?m=website&a=attribute&wid=<%$val.wid%>" class="edit" wid="<%$val.wid%>">修改</a> <a href="index.php?m=website&amp;a=delete&amp;wid=<%$val.wid%>" class="delete" warn="删除之后不可恢复,确定要删除吗?">删除</a></td>
  </tr>
  <%/foreach%>
</table>
<script language="javascript">
</script>
</div>
</body>
</html>
